import { Metadata } from "next";
import { auth } from "~/server/auth";
import { redirect } from "next/navigation";
import RegisterForm from "~/components/auth/RegisterForm";

export const metadata: Metadata = {
  title: "注册 - 在线教育平台",
  description: "注册在线教育平台账号",
};

export default async function RegisterPage() {
  const session = await auth();
  if (session) {
    redirect("/dashboard");
  }

  return (
    <div className="flex min-h-screen items-center justify-center bg-gray-50">
      <RegisterForm />
    </div>
  );
} 